package org.atfeihu.springcloud.alibaba.controller;

import lombok.extern.slf4j.Slf4j;
import org.atfeihu.springcloud.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangfeihu
 * @create 2021/9/8 14:51
 */
@RestController
@Slf4j
public class MessageController {

    @Autowired
    private IMessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String send() {
        return messageProvider.send();
    }
}
